import myConnect from '../../HOCCom/hocComp';
import AgeCtrlUi from './ageCtrlUi';
// import {ContContext} from "../../context/contContext"

function mapStateToProps(state) {
    return {
        val: state.obj.age
    };
}
function mapDispachToProps(disPatch) {
    return {
        inputChange: val => disPatch(() => this.context.infChange({ name: val.target.value }))
    };
}

export default myConnect(mapStateToProps, mapDispachToProps)(AgeCtrlUi);
